package com.spy.material.domain;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.spy.common.annotation.Excel;
import com.spy.common.core.domain.BaseEntity;

/**
 * 采购管理对象 purchase_order
 *
 * @author twc
 * @date 2025-11-09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("采购管理实体")
public class PurchaseOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 采购单号
     */
    @Excel(name = "采购单号")
    @ApiModelProperty("采购单号")
    private String purchaseOrderNumber;

    /**
     * 采购单标题
     */
    @Excel(name = "采购单标题")
    @ApiModelProperty("采购单标题")
    private String title;

    /**
     * 配送点
     */
    @Excel(name = "配送点")
    @ApiModelProperty("配送点")
    private String fullName;

    /**
     * 采购员
     */
    @Excel(name = "采购员")
    @ApiModelProperty("采购员")
    private String purchaser;

    /**
     * 采购日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("采购日期")
    private LocalDateTime purchaseDate;

    /**
     * 采购总数量
     */
    @Excel(name = "采购总数量")
    @ApiModelProperty("采购总数量")
    private Integer totalPurchaseQuantity;

    /**
     * 实际收货总数
     */
    @Excel(name = "实际收货总数")
    @ApiModelProperty("实际收货总数")
    private Integer actualReceivedTotal;

    /**
     * 验收人
     */
    @Excel(name = "验收人")
    @ApiModelProperty("验收人")
    private String acceptor;

    /**
     * 验收日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "验收日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("验收日期")
    private LocalDateTime acceptanceDate;

    /**
     * 供应商
     */
    @Excel(name = "供应商")
    @ApiModelProperty("供应商")
    private String supplier;

}